From 2499f2ed8098110845a041f7783e51e6740ad497 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Sun, 7 Apr 2013 16:42:42 +0200 Subject: [PATCH] AppSwitcherPopup: Activate only the selected window if any If there's an explicitly selected window thumbnail we should bring up only that particular window instead of all the application's windows. https://bugzilla.gnome.org/show_bug.cgi?id=697480 --- js/ui/altTab.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 4b62f5c71..435e66f5e 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -233,8 +233,10 @@ const AppSwitcherPopup = new Lang.Class({ _finish : function(timestamp) { let appIcon = this._items[this._selectedIndex]; - let window = this._currentWindow > 0 ? this._currentWindow : 0; - appIcon.app.activate_window(appIcon.cachedWindows[window], timestamp); + if (this._currentWindow < 0) + appIcon.app.activate_full(-1, timestamp); + else + Main.activateWindow(appIcon.cachedWindows[this._currentWindow], timestamp); this.parent(); }, -- 2.39.5